<?php include './application/views/common/header.php'; ?>
<!-- Menu End -->
<div class="gsdother">
	<h2><?php echo isset($u['username']) ? $u['username'] : '';?>的个人信息</h2>
	<div class="gsdother_li">
		<ul>
			<li><dd>用户名：</dd><dt><?php echo isset($u['username']) ? $u['username'] : '';?></dt></li>
			<li><dd>会员等级：</dd><dt><img title="<?php echo isset($u_credit['credit_value']) ? $u_credit['credit_value'] : 0;?>分" src="/static/credit/<?php echo isset($u_credit['pic']) ? $u_credit['pic'] : 'lv1.png';?>"></dt></li>
			<li><dd>会员认证：</dd>
				<dt style="margin-top:8px;">
					<?php if(isset($u['real_status'])&&$u['real_status'] == 1) {?>
						<div class="credit_pic_card_1" title="实名已认证" style="float:left"></div>
						<?php }else{?>
						<div class="credit_pic_card_0" title="实名未认证" style="float:left"></div>
						<?php }?>

						<?php if(isset($u_vip['vip_status']) && $u_vip['vip_status']==1) {?>
						<div class="credit_pic_vip_1" title="VIP" style="float:left"></div>
						<?php }else{?>
						<div class="credit_pic_vip_0" title="普通会员" style="float:left"></div>
						<?php }?>

						<?php if(isset($u['email_status'])&&$u['email_status'] == 1) {?>
						<div class="credit_pic_email_1" title="邮箱已认证" style="float:left"></div>
						<?php }else{?>
						<div class="credit_pic_email_0" title="邮箱未认证" style="float:left"></div>
						<?php }?>

						<?php if(isset($u['phone_status'])&&$u['phone_status'] == 1) {?>
						<div class="credit_pic_phone_1" title="手机已认证" style="float:left"></div>
						<?php }else{?>
						<div class="credit_pic_phone_0" title="手机未认证" style="float:left"></div>
						<?php }?>
				</dt>
			</li>
			<li><dd>籍 贯：</dd>
				<dt>
					<?php echo isset($u['province']) && $u['province'] ? $area_list[$u['province']] : ''; ?>
					<?php echo isset($u['city']) && $u['city'] ? $area_list[$u['city']] : ''; ?>
				</dt>
			</li>
			<li><dd>用户积分：</dd><dt><?php echo isset($u_credit['credit_value']) ? $u_credit['credit_value'] : ''; ?></dt></li>
			<li><dd>跟踪客服：</dd>
				<dt>
					<?php echo isset($u_vip['username']) ? $u_vip['username'] : '-';?>
					<?php echo $kefu['username']; ?><a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $kefu['qq']; ?>&site=qq&menu=yes" target="_blank">
					<img border="0" src="http://wpa.qq.com/pa?p=2:<?php echo $kefu['qq']; ?>:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a>
				</dt>
			</li>
			<li><dd>注册时间：</dd><dt><?php echo isset($u['add_time']) && $u['add_time']!=0 ? date('Y-m-d',$u['add_time']) : '-';?></dt></li>
			<li><dd>最后登录：</dd><dt><?php echo isset($u['lasttime']) && $u['lasttime']!=0 ? date('Y-m-d',$u['lasttime']) : '-';?></dt></li>
			<li><dd>&nbsp;</dd><dt>&nbsp;</dt></li>
		</ul>
	</div>
	<!-- Other_Li End -->
	<div class="gsdother_wrap">
		<div class="gsdother_div">
			<h3>借款列表</h3>
			<ul>
				<?php if(isset($borrow_list) && count($borrow_list) > 0){foreach($borrow_list as $borrow){?>
				<li><span><?php echo $borrow==1?"招标中":"借款成功";?></span><a href="/borrow/obj/<?php echo $borrow['id'];?>.html"><?php echo $borrow['title'];?></a></li>
				<?php }}?>
			</ul>
		</div>
		<div class="gsdother_div" style="float:right;">
			<h3>投资列表</h3>
			<table width="99%" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto">
			  <tr>
			    <td align="center" bgcolor="#f9f9f9"><strong>标题</strong></td>
			    <td align="center" bgcolor="#f9f9f9"><strong>投标资金</strong></td>
			    <td align="center" bgcolor="#f9f9f9"><strong>有效资金</strong></td>
			    <td align="center" bgcolor="#f9f9f9"><strong>投标时间</strong></td>
			    <td align="center" bgcolor="#f9f9f9"><strong>状态</strong></td>
		      </tr>
		      <?php if(isset($tender_list) && $tender_list){foreach($tender_list as $tender){?>
			  <tr>
			    <td align="center"><?php echo $tender['title'];?></td>
			    <td align="center"><?php echo number_format($tender['money'],2);?>元</td>
			    <td align="center"><?php echo number_format($tender['account'],2);?>元</td>
			    <td align="center"><?php echo date('Y-m-d',$tender['add_time']);?></td>
			    <td align="center"><?php echo "成功";?></td>
		      </tr>
		      <?php }}?>
		  </table>
		</div>
	</div>
</div>
<!-- Other End -->
<script>
<?php if(isset($msg) && $msg!=''){ ?>
$(function(){
	$('#dialog').dialog({
		modal:true,
		title:'系统提示',
		buttons:{"确定":function(){$(this).dialog("close");}},
		close: function() {
			location="/";
		}
	});
	$("#msg").html("<?php echo $msg;?>");
});

<?php }?>

</script>
<div class="clear"></div>
<!-- Warp End -->

<?php include './application/views/common/footer.php'; ?>